import axios from 'axios';
import { DataProps, ParamsProps } from './params.d'

// 查询数据接口
export const FetchQueryList = () => {
  return axios.get('/api/test')
}
// 增加数据接口
export const FetchAddItem = (data: DataProps) => {
  return axios.post('/api/add', data)
}
// 编辑数据接口

export const FetchEditItem = (data: DataProps) => {
  return axios.post('/api/update', data)
}

// 删除数据接口
export const FetchDeleteItem = (params: ParamsProps) => {
  return axios.get('/api/delete', { params })
}

